<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="${pageContext.request.contextPath}/styly.css" type="text/css" rel="stylesheet"/>
        <title><spring:message code="edit.title"/></title>
    </head>
    <body>
        <div class="wrapper">
            <div class="header"><h1><spring:message code="edit.h1"/></h1></div>
            <div class="navig">
                <%@ include file="../navig.jsp" %>
            </div>

            <div class="content">
                <h3><spring:message code="edit.h3"/></h3>    
                <form method="post" action="../companyEdit">
                    <div style="color: red;"><spring:message code="${errMessage1}"/></div>
                    <div style="color: red;"><spring:message code="${errMessage2}"/></div>
                    <input type="hidden" name="id" value="${company.id}"/>
                    <spring:message code="list.th1"/>: <input type="text" size="20" name="name" value="${company.name}"/><br/>
                    <spring:message code="list.th2"/>: <input type="text" size="30" name="adress" value="${company.adress}"/>
                    <input type="submit" name="<spring:message code="list.submit"/>" />    
                </form>
            </div>
            <div class="footer">
                Team: Andrej Hraško, Ondřej Myška, Lukáš Slovák, Michal Polkoráb
            </div>
        </div>        
    </body>
</html>
